package org.brisling.supply.domain;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

import org.brisling.base.domain.impl.BaseTreeDomain;
import org.brisling.base.domain.inf.BaseTreeDomainInf;
import org.brisling.base.domain.inf.BaseTreeNodeInf;
import org.brisling.common.ConstSysParam;


/**
 * 
 * 供应商类型实体类
 * @author : jackson wang
 * @Date   : 2015年10月8日 下午10:01:07
 * @version: 1.0
 * 
 */
@Entity
@Table(name=ConstSysParam.MODULE_SUPPLY_BASETYPE)
public class SupplyBaseType extends BaseTreeDomain implements BaseTreeDomainInf,BaseTreeNodeInf {

	
	
	
	//实际id值
	@Transient
	private Long rid;
	
	
	public Long getRid() {
		return rid;
	}


	public void setRid(Long rid) {
		this.rid = rid;
	}
	
	/**
	 * 节点类型
	 */
	@Transient
	private String nodeType = "T";

	public String getNodeType() {
		return nodeType;
	}

	
	public void setNodeType(String nodeType) {
		this.nodeType = nodeType;
	}


	@Override
	public void setText(String text) {
		// TODO Auto-generated method stub
		this.name = text;
	}
	
	
}
